import  tkinter
master = tkinter.Tk()
canvas = tkinter.Canvas(master, bg ='darkslategray', height = 500, width = 500)

X = int(input())
Y = int(input())
N = int(input())

X2 = X
Y2 = Y
N2 = N

if N2 == 0 and X2>=0 and X2<=500 and Y2>=0 and Y2<=500 and N2 > 0 and 0*N2+X2>=0 and 0*N2+Y2>=0 and 20*N2+X2<=500 and 20*N2+Y2<=500:
    pass
else:
    if N2 > 0 and 0*N2+X2>=0 and 0*N2+Y2>=0 and 20*N2+X2<=500 and 20*N2+Y2<=500:
        pass
    else:
        if N < 0 and 20*N2+X2>=0 and 30*N2+Y2>=0 and 0*N2+X2<=500 and 0*N2+Y2<=500:
            pass
        else:
            print('Размер фигуры превышает максимальный размер поля')
            exit()
canvas.create_polygon([0*N+X,0*N+Y],[10*N+X,0+Y],[10*N+X,10*N+Y],[20*N+X,10*N+Y], [20*N+X,20*N+Y], [10*N+X,20*N+Y],[10*N+X,30*N+Y], [0*N+X,30*N+Y], fill='lightpink4')

canvas.pack()
master.mainloop()
